package com.school.movie.business.web.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * @author zhaoren
 */
@TableName("movie")
public class MovieVo implements Serializable {

    @TableId
    private Integer movieId;
    private String movieName;
    /**
     * 电影类别：如战争，爱情，历史等
     */
    private int movieTypeId;
    /**
     * 拍摄年份
     */
    private int movieYearId;
    /**
     * 所属区域，如大陆，美国等
     */
    private int movieAreaId;
    /**
     * 1即将上映，2正在热映，3经典影片
     */
    private int playType;
    //想看人数
    private int hopeLook;
    //排序
    private int seq;
    private String cimg;
    private String registerTime;
    private String content;
    @TableField(exist = false)
    private String areaName;
    @TableField(exist = false)
    private String movieYearName;
    @TableField(exist = false)
    private String movieTypeName;
    //电影评分
    private float score;
    //票房统计
    @TableField(exist = false)
    private float saleTotal;
    //是否进口片
    @TableField("is_imported")
    private int isImported;
    private int duration;

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public int getIsImported() {
        return isImported;
    }

    public void setIsImported(int isImported) {
        this.isImported = isImported;
    }


    public float getSaleTotal() {
        return saleTotal;
    }

    public void setSaleTotal(float saleTotal) {
        this.saleTotal = saleTotal;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public String getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getMovieYearName() {
        return movieYearName;
    }

    public void setMovieYearName(String movieYearName) {
        this.movieYearName = movieYearName;
    }

    public String getMovieTypeName() {
        return movieTypeName;
    }

    public void setMovieTypeName(String movieTypeName) {
        this.movieTypeName = movieTypeName;
    }

    public Integer getMovieId() {
        return movieId;
    }

    public void setMovieId(Integer movieId) {
        this.movieId = movieId;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public int getMovieTypeId() {
        return movieTypeId;
    }

    public void setMovieTypeId(int movieTypeId) {
        this.movieTypeId = movieTypeId;
    }

    public int getMovieYearId() {
        return movieYearId;
    }

    public void setMovieYearId(int movieYearId) {
        this.movieYearId = movieYearId;
    }

    public int getMovieAreaId() {
        return movieAreaId;
    }

    public void setMovieAreaId(int movieAreaId) {
        this.movieAreaId = movieAreaId;
    }

    public int getPlayType() {
        return playType;
    }

    public void setPlayType(int playType) {
        this.playType = playType;
    }

    public int getHopeLook() {
        return hopeLook;
    }

    public void setHopeLook(int hopeLook) {
        this.hopeLook = hopeLook;
    }

    public int getSeq() {
        return seq;
    }

    public void setSeq(int seq) {
        this.seq = seq;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCimg() {
        return cimg;
    }

    public void setCimg(String cimg) {
        this.cimg = cimg;
    }

    @Override
    public String toString() {
        return "编号=" + movieId + ",电影名称=" + movieName;
    }
}
